
import React from "react";
import "./index.scss"

type SlotComponentProps = {
    top?: React.ReactNode;
    table?: React.ReactNode;
    paginations?: React.ReactNode;
};
const Common: React.FC<SlotComponentProps> = ({ top, table, paginations }) => {

    return <>
        <div className="all">
            {top && <div className="top">
                <div className="search">
                    {top}
                </div>
            </div>}
            <div className="table">
                <div className="table-t">
                    {table}
                    <div className="pagination"> {paginations}</div>
                </div>
            </div>
        </div>
    </>
}


export default Common